import http from "../server";
// 投票统计数据
export const getGeneralinfo = (params) =>
  http.post("/vote/collect/general/info", params);
// 投票分组
export const getGrouplist = (params) =>
  http.post("/vote/group/getList", params);
// 候选项得票情况分页统计
export const getList = (params) =>
  http.post("/vote/collect/statistics/getList", params);
// 获取投票全量信息
export const getVoteinfo = (params) => http.post("/vote/app/vote/info", params);
// 创建投票
export const insertVote = (params) =>
  http.post("/vote/app/ballot/insert", params);
// 获取投票候选项信息
export const getItemInfo = (params) => http.post("/vote/candidate/get", params);
// 获取工会列表
export const getSzOrgInfo = () => http.get("/online/org/getSzOrgInfo");
// 新增投票报名信息
export const addVote = (params) => http.post("/vote/enroll/save", params);
// 获取投票报名信息
export const getEnrollInfo = (params) => http.post("/vote/enroll/get", params);
// 获取我的投票报名信息
export const getMyEnrollList = (params) =>
  http.post("/vote/app/enroll/myList", params);
// 更新浏览次数
export const updateViewNum = (params) =>
  http.post("/vote/app/updateViewNum", params);
